//
//  NSString+Utility.h
//  DGUtilityKit
//
//  Created by Jinxiao on 1/17/14.
//  Copyright (c) 2014 debugeek. All rights reserved.
//

@interface NSString (Caculator)
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
- (BOOL)isValidPrice;
- (BOOL)isDecimalFormat;

- (BOOL)isWhitespace;
- (BOOL)isEmptyOrWhitespace;
- (BOOL)isEmptyWhitespaceOrNewLines;
- (BOOL)isContainsEmoji;

- (NSInteger)wordCount;
- (NSInteger)charCount;

- (NSString *)pinyin;

@end

@interface NSString (Encrypt)

- (NSString *)md5;

@end

@interface NSString (Format)

- (NSString *)stringByConvertingUnicodeToUTF8;

- (NSString *)stringByRemovingLinebreaks;

- (NSString *)stringByConvertingHTMLToPlainText;

- (NSString *)stringByDecodingHTMLEntities;

- (NSString *)camelcaseString;

@end

@interface NSString (Size)

- (CGSize)sizeOfFont:(UIFont *)font constrainedToSize:(CGSize)size;
- (CGFloat)lineHeightOfFont:(UIFont *)font;
- (CGFloat)lineWidthOfFont:(UIFont *)font;

@end

@interface NSString (Validate)

- (BOOL)isValidTelNumber;

- (BOOL)isValidPhoneNumber;

- (BOOL)isPureNumber;

@end

@interface NSString (UUID)

+ (NSString *)uuid;

@end

@interface NSString (Acronym)

- (NSString *)acronym;

@end
